clear all

**************************************************************
* Table 6. Heterogeneity by Emotional Stability
*************************************************************

* NLSY
use "nlsy_pseudo", clear
gen es_em_stab = es_pct*em_stab
reghdfe fin_distress es_pct college-own_home if em_stab ~= ., a(reg_yr male age) cl(id)
reghdfe fin_distress es_em_stab es_pct em_stab college-own_home, a(reg_yr male age) cl(id)

* HRS
use "hrs_pseudo", clear
gen es_em_stab = es_pct*em_stab
reghdfe fin_distress es_pct college-own_home if em_stab ~= ., a(reg_yr male age) cl(id)
reghdfe fin_distress es_em_stab es_pct em_stab college-own_home, a(reg_yr male age) cl(id)

* HILDA
use "hilda_pseudo", clear
gen es_em_stab = es_pct*em_stab
reghdfe late_house es_pct college-own_home if em_stab ~= ., a(state_wave male age) cl(id)
reghdfe late_house es_em_stab es_pct em_stab college-own_home, a(state_wave male age) cl(id)
reghdfe late_bills es_pct college-own_home if em_stab ~= ., a(state_wave male age) cl(id)
reghdfe late_bills es_em_stab es_pct em_stab college-own_home, a(state_wave male age) cl(id)

